package com.aaa.service.impl;

import com.aaa.dao.BrandMapper;
import com.aaa.entity.Brand;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

@Service
public class BrandServiceImpl {
    @Resource
    BrandMapper brandMapper;
    public List<Brand> select(){
        return brandMapper.selectList(null);
    }
    public Integer insert(Brand brand){
        //System.out.println(publisher+"这是service属性");
        return brandMapper.insert(brand);
    }
    public Integer update(Brand brand){
        return brandMapper.updateById(brand);
    }
    public Integer delete(Integer id){
        return brandMapper.deleteById(id);
    }
}
